package com.xiongda;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * 测试
 */
public class test3 {

    @Test
    public void test() {
        PageHelper.startPage(1,10);
        List list = new ArrayList();
        for (int i = 0; i < 100; i++)
            list.add(i);
        Page page = PageHelper.getLocalPage();
        int size = page.getPageSize();
        int num = page.getPageNum();
        int row = page.getStartRow();
        long total = page.getTotal();
        System.out.println(size + " : " + num + " : " + row + " : " + total + " : " + list.size());
    }
}
